<?php
class PosttestController extends AppController {

	/**
	 * Function Index
	 * @param getParameter
	 * @return view
	 */
	public function index () {
		//TODO
		//Get newest data from post 
		//limit by configuration
		
		
		//Check is login user?
		//Call modle user? --> write on User Model
			//Get session is login
			
		
		//Check current user is own this post
			//Get user_id from post
			$post = $this->Post->find();
			//Compare with user in session 
			if ($post->userId == $this->Session['userid'])
			{
				return "??";
			} 
		
		//Return to  view
		
		
		//End function
	}
	
	public function getuser ()
	{
		
	}
	
}
